package com.five.community.mapper;

import com.five.community.bean.Activity;
import com.five.community.bean.vo.ActivityVo;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;
@Mapper
public interface ActivityMapper {
//    查询所有活动表信息
    List<Activity> selectAll() throws Exception;
//    根据id查询信息
    Activity selectById(long id) throws Exception;
//    根据活动标题查询信息
    List<ActivityVo> selectByTitle(String title) throws Exception;
//    查询所有活动信息最终查询活动一览
    List<ActivityVo> selectAllF() throws Exception;
//  根据ID删除活动条例
    void delete(long id) throws Exception;
//  添加插入活动信息
    void insert(Activity activity) throws Exception;
//  编辑修改活动信息
    void update(Activity activity) throws Exception;
}
